import React from "react";

const Results = ({beers}) => {
    return (
        // frament 文档碎片 不会显示 会消失
        <div>
           {beers.map(beer => <li key={beer.id}>
               {beer.title} - <img src={beer.pic} />
           </li>)}
       </div>
            
        
    )
}

export default Results;